#import "dfhgwhruebvhrheybangorganismViewController.h"
#import "dfhgwhruebvhrheyprocessionattractiveViewController.h"
@interface dfhgwhruebvhrheyprocessionattractiveViewController ()
@property (weak, nonatomic) IBOutlet UIImageView *icon;
@property (weak, nonatomic) IBOutlet UILabel *tipsText;
@property (weak, nonatomic) IBOutlet UILabel *resultText;
@property (weak, nonatomic) IBOutlet UIButton *resultBtn;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *resultBtnWidthConstraint;
@end
@implementation dfhgwhruebvhrheyprocessionattractiveViewController
- (void)viewDidLoad {
    [super viewDidLoad];
	[self configBackIcon:@"dhgfywegwygeydwcurvereciprocal"];
	if (self.reason) {
		[dfhgwhruebvhrheyoptionsaving.keyWindow show:self.reason];
		self.resultBtnWidthConstraint.constant = 349;
		self.resultText.text = @"Account Deletion Failed";
		self.resultText.textColor = @"#FB3314".dhgfywegwygeydwlearneddesignate;
		self.icon.image = [UIImage imageNamed:@"mine_delete_failure"];
		[self.resultBtn setTitle:@"Customer service" forState:UIControlStateNormal];
		self.tipsText.text = @"If you have any questions, please contact customer service";
	}else {
		self.resultBtnWidthConstraint.constant = 200;
		self.resultText.text = @"Account Deleted Successfully";
		self.resultText.textColor = @"#70D545".dhgfywegwygeydwlearneddesignate;
		self.icon.image = [UIImage imageNamed:@"home_status_success"];
		[self.resultBtn setTitle:@"OK" forState:UIControlStateNormal];
		self.tipsText.text = @"The current account has been deleted. You can re-register or log in with an existing account";
	}
}
- (IBAction)okAction {
	if (self.reason) {
		dfhgwhruebvhrheybangorganismViewController *webVC = [[dfhgwhruebvhrheybangorganismViewController alloc] init];
		webVC.isShowBottomView = NO;
		[webVC loadURLString:serviceH5];
		webVC.hidesBottomBarWhenPushed = YES;
		webVC.navigationItem.title = @"Assistance";
		[self.navigationController pushViewController:webVC animated:YES];
	}else {
		[dfhgwhruebvhrheyoptionsaving logout];
		[self.navigationController popToRootViewControllerAnimated:YES];
	}
}
- (void)backAction {
	if (self.reason == nil) {
		[dfhgwhruebvhrheyoptionsaving logout];
	}
	[self.navigationController popToRootViewControllerAnimated:YES];
}
@end
